function get(key){
	let value;
	try{
		value = uni.getStorageSync(key)
	} catch(e){
		console.error(e)
	}
	return value;
}
function set(key,value){
	let result = true;
	try{
		uni.setStorageSync(key,value);
	} catch(e){
		result = false;
	}
	return result;
}
const unLoginUser = {
	nickName:"未登录",
	avatar_file:{
		url:"https://img9.doubanio.com/view/group_topic/l/public/p515054046.webp"
	}
}
// TokenOut true时没有超期 false时超时
const TokenOut = (new Date).getTime() < get('uni_id_token_expired')
//获取以后判断一下 没有内容的话返回一个未登录的用户信息对象
const userinfo = TokenOut?get('uni-id-pages-userInfo'):unLoginUser
export default{
	get,
	set,
	userinfo
}